package homework3;

import java.util.Scanner;

//输出一个整数的每一位
public class P6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int n = sc.nextInt();
            System.out.print(n + "的每一位为");
            while (n != 0) {
                System.out.print(n % 10 + " ");
                n /= 10;
            }
        }

    }
}
